<?php /* Smarty version 2.6.19, created on 2010-10-26 15:52:03
         compiled from cart_list_inc.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'cart_list_inc.html', 20, false),)), $this); ?>
<form name="fcart" id="fcart" method="post" action="inc/cart_post.php?editcart=true" style="margin:0px" >
  <table width="100%"  border="0" cellspacing="1" cellpadding="7">
    <tr>
      <td background="skins/stlye/images/gwcbtbj_03.jpg" style="font-size:14px; font-weight: bold; color: #346699; border-bottom:solid 1px #d5e7fd; "><table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:27px;">
        <tr>
          <td width="10%" align="center"  style="border-right:solid 1px #d5e7fd;">序号</td>
          <td width="30%" align="center" style="border-right:solid 1px #d5e7fd;">书籍名称</td>
          <td width="20%" align="center" style="border-right:solid 1px #d5e7fd;">单价(Z币)</td>
          <td width="20%" align="center" style="border-right:solid 1px #d5e7fd;">数量</td>
          <td width="10%" align="center" style="border-right:solid 1px #d5e7fd;">合计</td>
          <td align="center">删除</td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td colspan="6" align="right"  style=""><?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['clist']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?><table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:27px;">
        <tr>
          <td width="10%" align="center"  ><?php echo $this->_sections['i']['rownum']; ?>
</td>
          <td width="30%" align="left" ><a href="book_show.php?id=<?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['url']; ?>
" target="_blank"><span style="color:#009; text-decoration:underline"><?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['name']; ?>
</span></a></td>
          <td width="20%" align="center" ><?php echo ((is_array($_tmp=$this->_tpl_vars['clist'][$this->_sections['i']['index']]['price_y'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</td>
          <td width="20%" align="center" ><input name="num[]" type="text" id="num[]" value="<?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['num']; ?>
" style="text-align:center; width:30px; font-size:9px;"/><input name="key[]" type="hidden" id="key[]" value="<?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['ID']; ?>
" /></td>
          <td width="10%" align="center" ><?php echo ((is_array($_tmp=$this->_tpl_vars['clist'][$this->_sections['i']['index']]['xiaoji'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</td>
          <td align="center"><a href="inc/cart_post.php?deletecart=<?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['ID']; ?>
">删除</a></td>
        </tr>
      </table><?php endfor; endif; ?></td>
    </tr>
    <tr>
      <td colspan="6" align="right"  style="font-size:14px; padding-right:15px;">可获取积分：<?php echo $this->_tpl_vars['jifen']; ?>
 &nbsp;总计：<?php echo ((is_array($_tmp=$this->_tpl_vars['zongji'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 Z币 </td>
    </tr>
  </table><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px; margin-bottom:10px">
        <tr>
          <td align="right" style="padding-right:10px"><img src="skins/stlye/images/xggwc_03.jpg" width="86" height="23" border="0" onClick="fcart.submit()"  style="cursor:hand"/>&nbsp;&nbsp;<a href="book_content.php" ><img src="skins/stlye/images/gwctan_13.jpg" width="75" height="23" border="0" /></a>&nbsp;&nbsp;<a href="inc/cart_post.php?deletecartall=true"><img src="skins/stlye/images/gwctan_15.jpg" width="75" height="23" border="0" /></a>&nbsp;&nbsp;<a href="cart_orderform.php"><img src="skins/stlye/images/xdda_03.jpg" width="75" height="23" border="0" /></a></td>
        </tr>
      </table>
</form>